<template>
  <div class="app-container center">
    <rich-text saveType="local" content="<div>Hello World</div>" :changeContent="handleChange('abc')"></rich-text>
  </div>
</template>

<style lang="scss" scoped>
.center {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
</style>

<script lang="ts" setup>
import RichText from "@/components/RichText/index.vue"
import { ref } from "vue"

const handleChange = (value: string) => {
  console.log(value)
  return (editor: string) => {
    console.log(editor, value)
  }
}
</script>